#include "mainwindow.h"
#include <QApplication>
#include <QTextCodec>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    //解决中文乱码
        QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF8"));
       // QTextCodec::setCodecForTr(QTextCodec::codecForName("system"));    //若英文系统，则用GBK
        QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF8"));
        QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF8"));

    MainWindow w;
    w.show();

    return a.exec();
}
